package com.subaiqiao.yunshiyuan.entrance.ysy.pojo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.subaiqiao.yunshiyuan.basis.pojo.BasisPojo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 
 * </p>
 *
 * @author 曹朝禹
 * @since 2022-05-13
 */
@Getter
@Setter
@ApiModel(value = "FileValue对象", description = "")
public class FileValue implements BasisPojo {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("文件编号")
      @TableId(value = "file_id", type = IdType.AUTO)
    private Integer fileId;

    @ApiModelProperty("文件名称")
    private String fileName;

    @ApiModelProperty("文件大小")
    private String fileSize;

    @ApiModelProperty("文件路径")
    private String filePath;

    @ApiModelProperty("文件类型")
    private String fileType;

    @ApiModelProperty("上传者id")
    private Integer userId;

    @ApiModelProperty("文件访问链接")
    private String fileUrl;

    @ApiModelProperty("上传日期")
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createDatetime;


}
